<p><a href="<?php echo $this->url(array('controller'=>'userservice', 
	'action' => 'addservice'));?>"><?php echo $this->translate($this->escape("Add new service"))?></a>
<table>
	<tr>
		<th><?php echo $this->translate("Agent code")?></th>		
		<th>&nbsp;</th>
	</tr>
	<?php foreach($this->userservices as $userservice) : ?>
	<tr>
		<td><?php echo $this->escape($userservice->agent_service_code);?></td>		
		<td>
			<a href="<?php echo $this->url(array('controller' => 'service', 
				'action' => 'edituserservice', 'id'=>$userservice->id));?>"><?php echo $this->translate("Edit");?></a>
			<a href="<?php echo $this->url(array('controller' => 'service', 
				'action' => 'deleteuserservice', 'id'=>$userservice->id));?>"><?php echo $this->translate("Delete");?></a>
		</td>
	</tr>
	<?php endforeach;?>
</table>